#ifndef ____FILTER_H_
#define ____FILTER_H_

#include "hc32_ll.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

float fml_middle_value_filter(float *buf, uint16_t len);

float fml_apply_ewma_filter(float new_value, float last_value) ;

float fml_moving_average_filter(const float *input, int input_len, int window_size, float *output);

float fml_simp_moving_average_filter(const float *input, uint16_t len);

#endif
